#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int N = 2e6 + 10;
ll a[N],sum;
int main()
{
	ll n, x;
	cin >> n >> x;
	for (int i = 1; i <= n; i++)
		cin >> a[i];
	sum = n * x;
	for (int i = 1; i <= n; i++)
		sum += a[i];
	cout << sum << endl;
	return 0;
}